package com.uploader;

import java.awt.Color;

import javax.swing.*;

public class Uploader extends JApplet {

	private static final long serialVersionUID = 5462589902885177121L;

	private void createAndShowGUI() {
		
		JPanel pnl = new JPanel();		
		pnl.setBorder(BorderFactory.createLineBorder(Color.BLACK));
		UploaderLayout ul = new UploaderLayout();		
				
		pnl.add(ul);		
		add(pnl);				
		
		JFrame.setDefaultLookAndFeelDecorated(true);
	}

	public void init() {
		try {
			SwingUtilities.invokeAndWait(new Runnable() {
				public void run() {					
					createAndShowGUI();
				}
			});
		} catch (Exception e) {
			System.err.println("Applet gui baslatilamadi.");
		}
	}

	private void initComponents() {
		setSize(600, 400);
	}

	public Uploader() {
		initComponents();
	}
}
